package com.liuya.safe.client.pojo;

import com.liuya.base.BaseModel;

/**
 * @author liuya
 * @date 20161013
 */
public class UserType extends BaseModel {

    private String name;

    private String desc;

    private UserMetadata userMetadata;

    private String userMetadataXML;

    private String srcFile;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public UserMetadata getUserMetadata() {
        return userMetadata;
    }

    public void setUserMetadata(UserMetadata userMetadata) {
        this.userMetadata = userMetadata;
    }

    public String getUserMetadataXML() {
        return userMetadataXML;
    }

    public void setUserMetadataXML(String userMetadataXML) {
        this.userMetadataXML = userMetadataXML;
    }

    public String toString() {
        return "name: " + this.name + "\n" + "desc: " + this.desc + "\n" + "userMetadataXML: " + this.userMetadataXML;
    }

    public String getSrcFile() {
        return srcFile;
    }

    public void setSrcFile(String srcFile) {
        this.srcFile = srcFile;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table safe_user_type
     *
     * @mbggenerated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UserType other = (UserType) that;
        return (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
                && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()))
                && (this.getUserMetadataXML() == null ? other.getUserMetadataXML() == null : this.getUserMetadataXML().equals(other.getUserMetadataXML()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table safe_user_type
     *
     * @mbggenerated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
        result = prime * result + ((getUserMetadataXML() == null) ? 0 : getUserMetadataXML().hashCode());
        return result;
    }

}
